Skip to content

fix: reload live preview iframe on category deletion#182

Merged
mayo-byte07 merged 1 commit into
mayo-byte07:mainfrom
tejask011:fix-stale-live-preview-category-deletion
Jun 11, 2026
Merged

fix: reload live preview iframe on category deletion#182
mayo-byte07 merged 1 commit into
mayo-byte07:mainfrom
tejask011:fix-stale-live-preview-category-deletion

Conversation

@tejask011

Copy link
Copy Markdown
Contributor

Description

This pull request fixes the stale Live Preview mockup bug on the Admin Dashboard. When a user deletes a category, the preview iframe now automatically refreshes in real-time, removing the deleted category and its associated links without requiring a manual page reload.

closes #181

Changes Made

  • Added a call to reloadPreview() inside the successful try block of the category deletion click handler in admin.js.
  • This ensures that when a category is deleted, the preview mockup screen reloads automatically to stay in sync with the updated database state.

Screenshots (if applicable)

image

Checklist

  • I have linked the relevant issue above (or described it fully).
  • I have tested my changes locally.
  • My code follows the project's style guidelines.

@vercel

vercel Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

@tejask011 is attempting to deploy a commit to the Mayo's projects Team on Vercel.

A member of the Team first needs to authorize it.

@mayo-byte07 mayo-byte07 added type:bug Something isn't working good first issue Good for newcomers gssoc26 level:intermediate (Medium/Bug fixes: ~25 points) gssoc:approved level:advanced labels Jun 8, 2026

@mayo-byte07 mayo-byte07 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@tejask011

tejask011 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

ok

please review this and
if all good merge this

@tejask011 tejask011 requested a review from mayo-byte07 June 10, 2026 10:26
@mayo-byte07 mayo-byte07 added this to the GSSoC '26 - Phase 2 milestone Jun 11, 2026
@vercel

vercel Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
conn Ready Ready Preview, Comment Jun 11, 2026 10:07pm

@mayo-byte07 mayo-byte07 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@mayo-byte07 mayo-byte07 merged commit c94819e into mayo-byte07:main Jun 11, 2026
3 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

good first issue Good for newcomers gssoc:approved gssoc26 level:advanced level:intermediate (Medium/Bug fixes: ~25 points) type:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Live Preview Frame Stays Stale on Category Deletion

2 participants